package com.sc.byahi.user.client.components.maps;


import com.google.gwt.core.client.JavaScriptObject;
import com.sc.byahi.user.client.MapHelper;


public class MapOptions extends JavaScriptObject {

	protected MapOptions() {
	}

	public final static MapOptions newInstance() {
		MapOptions options = newInstanceDefault();
		options.setCenter(MapHelper.DEFAULT);
		options.setMapTypeId("ROADMAP");
		options.setZoom(5);
		return options;
	}

	public final native void setCenter(LatLng center) /*-{
		this.center = center;
	}-*/;

	private final static MapOptions newInstanceDefault() {
		return JavaScriptObject.createObject().cast();
	}

	public final native void setMapTypeId(String type) /*-{
		this.mapTypeId = $wnd.google.maps.MapTypeId[type];
	}-*/;

	public final native void setZoom(int zoom) /*-{
		this.zoom = zoom;
	}-*/;

}
